from email.mime.text import MIMEText
msg = MIMEText('hello, send by Python...', 'plain', 'utf-8')

import smtplib

sever = smtplib.SMTP("smtp.qq.com", 25)
sever.set_debuglevel(1)
# QQ邮箱密码为开通的stmp服务后得到的客户端授权码
sever.login("3086816120@qq.com","")
sever.sendmail("3086816120@qq.com", ["gaochao@asiainfo.com"],msg.as_string())
sever.quit()